package cn.edu.scau.cmi.wujiaxian.exercise5;

public class Example5_3 {
	
	public static void main(String[] args) {
		XiyoujiRenwu1 zhubajie, sunwukong;
		zhubajie = new XiyoujiRenwu1();
		sunwukong = new XiyoujiRenwu1();
		zhubajie.height = 1.80f;
		zhubajie.head = "大头";
		zhubajie.ear = "一双大耳朵";
		sunwukong.height = 1.62f;
		sunwukong.weight = 1000f;
		sunwukong.head = "秀发飘飘";
		System.out.println("zhubajie的身高：" + zhubajie.height);
		System.out.println("zhubajie的头：" + zhubajie.head);
		System.out.println("sunwukong的重量：" + sunwukong.weight);
		System.out.println("sunwukong的头：" + sunwukong.head);
		zhubajie.speak("俺老猪我想娶媳妇");
		System.out.println("zhubajie现在的头：" + zhubajie.head);
		sunwukong.speak("老孙我重1000斤，我想骗八戒被我");
		System.out.println("sunwukong现在的头：" + sunwukong.head);
	}
	
}

class XiyoujiRenwu1 {
	float height, weight;
	String head, ear, hand, foot, mouth;
	void speak (String s) {
		head = "歪着头";
		System.out.println(s);
	}
}